.class public final Lnet/tsapps/topdeals/d/a;
.super Landroid/support/v4/view/a;

# interfaces
.implements Lcom/viewpagerindicator/k;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Lnet/tsapps/topdeals/objects/InitialResponse;

.field private c:Lnet/tsapps/topdeals/h/a;

.field private d:Landroid/view/View$OnClickListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lnet/tsapps/topdeals/h/a;Lnet/tsapps/topdeals/objects/InitialResponse;Landroid/view/View$OnClickListener;)V
    .locals 0

    invoke-direct {p0}, Landroid/support/v4/view/a;-><init>()V

    iput-object p1, p0, Lnet/tsapps/topdeals/d/a;->a:Landroid/content/Context;

    iput-object p3, p0, Lnet/tsapps/topdeals/d/a;->b:Lnet/tsapps/topdeals/objects/InitialResponse;

    iput-object p2, p0, Lnet/tsapps/topdeals/d/a;->c:Lnet/tsapps/topdeals/h/a;

    iput-object p4, p0, Lnet/tsapps/topdeals/d/a;->d:Landroid/view/View$OnClickListener;

    return-void
.end method


# virtual methods
.method public final a()I
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/d/a;->c:Lnet/tsapps/topdeals/h/a;

    invoke-virtual {v0}, Lnet/tsapps/topdeals/h/a;->o()I

    move-result v0

    return v0
.end method

.method public final a(Landroid/view/View;I)Ljava/lang/Object;
    .locals 8

    const/4 v7, -0x1

    iget-object v0, p0, Lnet/tsapps/topdeals/d/a;->b:Lnet/tsapps/topdeals/objects/InitialResponse;

    iget-object v1, p0, Lnet/tsapps/topdeals/d/a;->c:Lnet/tsapps/topdeals/h/a;

    invoke-virtual {v1, p2}, Lnet/tsapps/topdeals/h/a;->a(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/objects/InitialResponse;->a(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v3

    new-instance v0, Lnet/tsapps/topdeals/views/TdDealList;

    iget-object v1, p0, Lnet/tsapps/topdeals/d/a;->a:Landroid/content/Context;

    iget-object v2, p0, Lnet/tsapps/topdeals/d/a;->c:Lnet/tsapps/topdeals/h/a;

    invoke-virtual {v2, p2}, Lnet/tsapps/topdeals/h/a;->a(I)Ljava/lang/String;

    move-result-object v2

    iget-object v4, p0, Lnet/tsapps/topdeals/d/a;->c:Lnet/tsapps/topdeals/h/a;

    invoke-virtual {v4}, Lnet/tsapps/topdeals/h/a;->f()J

    move-result-wide v4

    iget-object v6, p0, Lnet/tsapps/topdeals/d/a;->d:Landroid/view/View$OnClickListener;

    invoke-direct/range {v0 .. v6}, Lnet/tsapps/topdeals/views/TdDealList;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/ArrayList;JLandroid/view/View$OnClickListener;)V

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v7, v7}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TdDealList;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    check-cast p1, Landroid/support/v4/view/ViewPager;

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroid/support/v4/view/ViewPager;->addView(Landroid/view/View;I)V

    return-object v0
.end method

.method public final a(I)Ljava/lang/String;
    .locals 4

    iget-object v0, p0, Lnet/tsapps/topdeals/d/a;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "listtitle_"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lnet/tsapps/topdeals/d/a;->c:Lnet/tsapps/topdeals/h/a;

    invoke-virtual {v2, p1}, Lnet/tsapps/topdeals/h/a;->a(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "string"

    iget-object v3, p0, Lnet/tsapps/topdeals/d/a;->a:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v1, v2, v3}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

    move-result v0

    if-nez v0, :cond_0

    const-string v0, ""

    :goto_0
    return-object v0

    :cond_0
    iget-object v1, p0, Lnet/tsapps/topdeals/d/a;->a:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public final a(Landroid/view/View;Ljava/lang/Object;)V
    .locals 0

    check-cast p1, Landroid/support/v4/view/ViewPager;

    check-cast p2, Landroid/view/View;

    invoke-virtual {p1, p2}, Landroid/support/v4/view/ViewPager;->removeView(Landroid/view/View;)V

    return-void
.end method

.method public final b()I
    .locals 1

    const/4 v0, -0x2

    return v0
.end method

.method public final b(Landroid/view/View;Ljava/lang/Object;)Z
    .locals 1

    check-cast p2, Landroid/view/View;

    if-ne p1, p2, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
